package com.tebiecloud.mpopen.server.service;

/**
 * 第三方平台回调接口
 * @Author: tebie
 * @Date: 2019-09-07 16:20
 */
public interface MpopenCallbackService {

    /**
     * 事件推送回调处理
     * @param msgSignature
     * @param timestamp
     * @param nonce
     * @param body
     * @return
     * @throws Exception
     */
    String event(String msgSignature, String timestamp, String nonce, String body) throws Exception;

    /**
     * 回调消息处理
     * @param msgSignature
     * @param timestamp
     * @param nonce
     * @param body
     * @return
     * @throws Exception
     */
    String msgReceive(String appid, String msgSignature, String timestamp, String nonce, String body) throws Exception;

}
